layui.define(function(exports){
    var store = {
        //在浏览器的localStorage中存放token
        setToken: function (token){
            localStorage.setItem("token", token);
        },
        //返回浏览器localStorage中的token
        getToken: function(){
            return localStorage.getItem("token");
        },
        //清除浏览器localStorage中的token
        clear: function () {
            return localStorage.removeItem("token");
        }
    };

    exports('store', store);
});
